import { createRouter, createWebHistory } from 'vue-router'
import home from '@/views/home/index.vue'
import login from '@/views/login/index.vue'
import My from '@/views/home/my.vue'
import Shop from '@/views/home/shop.vue'
import Clate from '@/views/home/clate.vue'
import Cla from '@/views/home/cla.vue'
import Ss from '@/views/ss.vue'
import Xq from '@/views/xq.vue'
const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/home',
      name: 'home',
      component: home, children: [
        {
          path: 'cla',
          name: 'cla',
          component: Cla,
        },
        {
          path: 'clate',
          name: 'clate',
          component: Clate,
        },
        {
          path: 'shop',
          name: 'shop',
          component: Shop,
        },
        {
          path: 'my',
          name: 'my',
          component: My,
        },
      ]
    },
    {
      path: '/login',
      name: 'login',
      component: login,
    },
    {
      path: '/ss',
      name: 'ss',
      component: Ss,
    },
    {
      path: '/xq',
      name: 'xq',
      component: Xq,
    },
  ],
})

export default router
